package com.bw.house.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author 邢晋宁
 * @since 2020-09-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbHouse implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 房屋名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 房屋地址
     */
    @TableField("ADDR")
    private String addr;

    /**
     * 房产证
     */
    @TableField("PP_CARD")
    private String ppCard;

    /**
     * 房东id
     */
    @TableField("OWNER")
    private Long owner;

    /**
     * 房东名字
     */
    @TableField("OWNER_NAME")
    private String ownerName;

    /**
     * 房东定价
     */
    @TableField("LPRICE")
    private BigDecimal lprice;

    /**
     * 中介定价
     */
    @TableField("DPRICE")
    private BigDecimal dprice;

    /**
     * 0待审核、1审核、2成交
     */
    @TableField("STATUS")
    private Integer status;

    /**
     * 房子图片
     */
    @TableField("PIC")
    private String pic;

    /**
     * 房子数量
     */
    @TableField("NUM")
    private Integer num;

}
